package com.yuexunit.account.action.v2.model;

public enum VerifyCodeType {
	UNKNOWN,
	REGISTER,
	FOGET_PASSWORD,
	CHANGE_MOBILE
	;
	
	
	/**
	 * @param value 枚举值
	 * @return 枚举
	 */
	public static VerifyCodeType valueOf(Integer value) {
		if (value == null)
			return UNKNOWN;
		
		for (VerifyCodeType each : values()) {
			if (each.ordinal() == value.intValue()) {
				return each;
			}
		}
		
		return UNKNOWN;
	}
}
